package com.lvmama.pangolin.mybatis.mapper.tn;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.lmm.LMMTicketCommodity;
import com.lvmama.pangolin.entity.tn.TNTicketCommodityItem;
import com.lvmama.pangolin.entity.tn.TNTicket_CommodityDetail;

public interface TNTicketCommodityItemsMapper {
	/**  
	* @Title：TCommodityItemsMapper.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年3月6日上午11:07:29  
	*/
	public int insert(TNTicket_CommodityDetail item);
	public void insertSelective(TNTicketCommodityItem item);
	public TNTicketCommodityItem selectById(@Param("commodityId")String commodity_id,@Param("productId")String productId);
	public int update(TNTicket_CommodityDetail item);
	public int updateByProdCommIdAndType(TNTicket_CommodityDetail item);
	public void updateSelective(TNTicketCommodityItem item);
	public List<TNTicketCommodityItem> selectByProdId(@Param("product_id")String product_id);
	public List<TNTicketCommodityItem> selectByProdComName(@Param("productId")String productId,@Param("commodityName")String commodityName);
	public TNTicketCommodityItem selectByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void updateByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteLinkByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteById(@Param("id")String id);
	List<TNTicketCommodityItem> selectByProdidAndIsLinked(Map<String, String> map);
	public List<TNTicketCommodityItem> selectByCommVO(InputCommodityVO co);
	public List<TNTicketCommodityItem> getActiveCommodity(@Param("productId")String productId);
}
